﻿using FluentAssertions;
using FluentAssertions.Assertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace CalculatorFour.UnitTests
{
    [TestClass]
    public class CalculatorIntegrationTests
    {
        [TestMethod]
        public void Add_When30And12IsProvidedAsInput_Should42BeReturned()
        {
            //Arrange
            var factory = new WCFProxyFactory();

            var calculator = new Calculator(factory);

            //Act
            float response = calculator.Add(30, 12);

            //Assert
            response.Should().BeApproximately(42, 0);
        }
    }
}